package com.mini.cn.goods.servlet.ws;

import lombok.extern.slf4j.Slf4j;

import javax.annotation.PostConstruct;
import java.util.concurrent.atomic.AtomicLong;

/**
 * Created with IntelliJ IDEA.

 * User: fly
 * Date: 2020-09-01
 * Time: 9:28 下午
 */
@Slf4j
public class DirectMemoryReporterImpl {
    private static final int _1k = 1024;
    private static final String BUSINESS_KEY = "netty_direct_memory";
    private static final String ACTIVESESSION = "session";
    private static final String ACTIVEREGISTERSCENEID = "activesceneid";
    private AtomicLong directMemory;

    @PostConstruct
    public void init() {
//        Field field = ReflectionUtils.findField(PlatformDependent.class, "DIRECT_MEMORY_COUNTER");
//        field.setAccessible(true);
//        try {
//            directMemory = ((AtomicLong) field.get(PlatformDependent.class));
//        } catch (Exception e) {
//            Cat.logError(e);
//        }
    }

    public void startReport() {

    }

    public void stopReport() {

    }
}
